//
//  AppDelegate.mm
//  Cargo-Bot
//
//  Created by Rui Viana on 2014年12月28日 星期日
//  Copyright (c) Rui Viana. All rights reserved.
//

#import "AppDelegate.h"
#import "ViewController.h"
//#import "StandaloneCodeaViewController.h"
//
//#import "GameCenterAddon.h"

@implementation AppDelegate

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
    self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
    ViewController *vc = [[ViewController alloc]init];
    UINavigationController *nav = [[UINavigationController alloc] initWithRootViewController:vc];
    vc.title = @"Codea项目选择";
    [self.window setRootViewController:nav];
    [self.window makeKeyAndVisible];
    
//    NSString* projectPath = [[[NSBundle mainBundle] bundlePath] stringByAppendingPathComponent:@"CargoBot.codea"];
//    
//    self.viewController = [[StandaloneCodeaViewController alloc] initWithProjectAtPath:projectPath];
//    
//    //Uncomment the following line if you'd like to use the basic GameCenter addon:
//    //[self.viewController registerAddon:[GameCenterAddon sharedInstance]];
//    
//    //See GameCenterAddon.h for the Lua API description.
//    
//    self.window.rootViewController = self.viewController;
//    [self.window makeKeyAndVisible];
    
    return YES;
}

- (void)applicationWillResignActive:(UIApplication *)application
{
}

- (void)applicationDidEnterBackground:(UIApplication *)application
{
}

- (void)applicationWillEnterForeground:(UIApplication *)application
{
}

- (void)applicationDidBecomeActive:(UIApplication *)application
{
}

- (void)applicationWillTerminate:(UIApplication *)application
{
}

@end
